
using System;
using Core.Base;
using Core.Contracts.Enums;
using Core.Contracts.Interfaces;
using Core.Features;
using Core.Resources;
using Core.Extensions;

namespace Core.Items.Robots
{
    /// <summary>
    /// Tyrannos robot class
    /// </summary>
    
    public sealed class Tyrannos : RobotBase
    {
        /// <summary>
        /// Create a new instance of the <see cref="T:Core.Items.Robots.Tyrannos"/> class.
        /// </summary>
        public Tyrannos()
            : base(
            "Tyrannos",
            Traduction.desc_tyrannos,
            FactionsEnum.Pelistal ,
            RobotTechnologyLevel.Mk1,
            RobotSizesEnum.Mech,
            new ISlot[]{ 
				new Slot(0, SlotGroupsEnum.Chassis, SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
				new Slot(1, SlotGroupsEnum.Chassis, SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
				new Slot(2, SlotGroupsEnum.Chassis, SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
				new Slot(3, SlotGroupsEnum.Chassis, SlotTypesEnum.Missile, SizesEnum.Small|SizesEnum.Medium),
				new Slot(4, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
				new Slot(5, SlotGroupsEnum.Chassis, SlotTypesEnum.Turret|SlotTypesEnum.Misc|SlotTypesEnum.Industrial, SizesEnum.Small|SizesEnum.Medium),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Head, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules),
				new Slot(SlotGroupsEnum.Legs, SlotTypesEnum.Modules), },
            new IFeature<object>[]{ 
				new AccumulatorCapacity<double>(2000),
				new AccumulatorRechargeTime<double>(420),
				new CpuPerformance<double>(300),
				new ReactorPerformance<double>(900),
				new ArmorAmount<double>(2825),
				new ChemicalResistance<double>(30),
				new KineticResistance<double>(10),
				new SeismicResistance<double>(45),
				new ThermalResistance<double>(150),
                new ChemicalEHP<double>(0),
                new KineticEHP<double>(0),
                new SeismicEHP<double>(0),
                new ThermalEHP<double>(0),
				new SurfaceHitSize<double>(8.00),
				new InterferenceEmission<double>(6.00),
				new InterferenceMinimum<double>(90.00),
				new InterferencePeak<double>(335.00),
				new InterferenceRadius<double>(300.00),
				new LockingRange<double>(290),
				new LockingTime<double>(12.50),
				new MaximumTargets<double>(5),
				new MissileGuidanceFailure<double>(0.1),
				new SensorStrength<double>(120),
				new SignalDetection<double>(120.00),
				new SignalMasking<double>(80.00),
				new ReloadingTime<double>(10),
				new CargoCapacity<double>(9.00),
				new RobotMass<double>(24550.00),
				new SlopeCapacity<double>(45),
				new TopSpeed<double>(57.60),
				new Volume<double>(19.00),
                new DemobilizerResistance<double>(0),
                new CriticalHitChance<double>(0)},

            new IBonusModifier[]
                {
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.LockingTime, -0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Locking time"},
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Module, FeaturesEnum.MediumMissileLauncherDamage, 0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Medium missile damage"},
                    new BonusModifier<PelistalRobotControl>( FeatureTypesEnum.Module, FeaturesEnum.MediumMissileLauncherCycleTime, -0.01){ Unit = UnitsEnum.Percentage, DisplayName = "Medium missile damage"},
                    new BonusModifier<AdvancedRobotics>( FeatureTypesEnum.Robot, FeaturesEnum.AccumulatorRechargeTime, -0.05){ Unit = UnitsEnum.Percentage, DisplayName = "Accumulator recharge time"},
                },
            new ICondition<IExtension>[] { 
                new ExtensionCondition<PelistalRobotControl>(5),
                new ExtensionCondition<AdvancedRobotics>(1)
            } )
        {
        }
    }
}